package com.attack.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexController {
	@RequestMapping("/index")
	public String index(){
		return "index";
	}
	
	@RequestMapping("/getData")
	public ModelAndView getData(HttpServletRequest request,String name){
		ModelAndView model=new ModelAndView("forward");
		//request.setAttribute("name", request.getParameter("name"));
		model.addObject("name",request.getParameter("name"));
		return model;
	}
}
